package util;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface BaseDao<T> {
	public PageVO<T> listByPage(T t, int page, int pageSize);
	public PageVO<T> listByPage(DetachedCriteria criteria, int page, int pageSize);
	public T getById(Serializable id);
	public List<T> listAll() throws Exception;
	public Serializable add(T t);
	public boolean update(T t);
	public boolean delete(T t);
	
}
